package com.example.flowermall.service;

import com.example.flowermall.entity.CreateOrder;
import com.example.flowermall.entity.Orders;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaoman
 * @since 2023-09-06
 */
public interface IOrderService extends IService<Orders> {

    void insertOrder(Orders orders);

    Orders getOrderById(Integer id);

    void updateOrder(Orders orders);

    void deleteOrder(String orderId);

    Orders createOrder(CreateOrder createOrder);

    Orders getByOrderId(String orderId, int i);

    List<Orders> getListByUserId(Integer userId, String orderStatus);

    void confirmOrder(String orderId);

    List<Orders> select(Orders orders);

    List<Orders> selectRevenueT();

    List<Orders> selectUnpaidT();

    List<Orders> selectRevenueY();

    List<Orders> selectUnpaidY();

    Map<String,Integer> getCount(Integer userId);

    Orders getByOrderId(String orderId);
}
